#include <string.h>
#include "golf.h"

int findLongestName()
{
    int i;
    int max;
    int len;

    max = 0;

    for (i = FIRST_PLAYER; i < MAX_PLAYERS; i++)
        if ((len = (int)strlen(players[i].name)) > max)
            max = len;

    return (max);
}                               // of of function findLongestName
